import request from '@/utils/request'

// 查询会员订单列表
export function listUserMemberOrder(query) {
  return request({
    url: '/userMemberOrder/userMemberOrder/list',
    method: 'get',
    params: query
  })
}

// 查询会员订单详细
export function getUserMemberOrder(id) {
  return request({
    url: '/userMemberOrder/userMemberOrder/' + id,
    method: 'get'
  })
}

// 新增会员订单
export function addUserMemberOrder(data) {
  return request({
    url: '/userMemberOrder/userMemberOrder',
    method: 'post',
    data: data
  })
}

// 修改会员订单
export function updateUserMemberOrder(data) {
  return request({
    url: '/userMemberOrder/userMemberOrder',
    method: 'put',
    data: data
  })
}

// 删除会员订单
export function delUserMemberOrder(id) {
  return request({
    url: '/userMemberOrder/userMemberOrder/' + id,
    method: 'delete'
  })
}
